<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- HTTP 1.1 -->
    <meta http-equiv="pragma" content="no-cache">
    <!-- HTTP 1.0 -->
    <meta http-equiv="cache-control" content="no-cache">
    <!-- Prevent caching at the proxy server -->
    <meta http-equiv="expires" content="0">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
    <title>顺义区小微企业协会</title>
    <link rel="stylesheet" href="css/my.css"> <!-- 公共样式 -->
    <link rel="stylesheet" href="css/shunyiSpecial.css?v=2"> <!-- 私有样式 -->
    <link rel="stylesheet" href="css/elementui.css">
    <script type="text/javascript" src="js/jweixin-1.3.2.js"></script>  <!-- 微信sdk -->
    <script type="text/javascript" src="js/rem.js"></script>  <!-- 适配js -->
    <script type="text/javascript" src="js/vue.js"></script>  <!-- vue.js -->
    <script type="text/javascript" src="js/axios.min.js"></script>  <!-- axios.js -->
    <script src="js/elementui.js"></script>  <!-- elementui -->
</head>
<body>
    <div id="app" class="app" :style="{ backgroundImage: 'url(' + (startUrl+'/img/subject3.jpg') + ')' }">
      <div class="divBox">
        <img :src="startUrl+'/img/subject1.png'" alt="" class="img1">
      </div>
      <div class="divBox">
        <img :src="startUrl+'/img/subject4.png'" alt="" class="img2">
      </div>
      <p class="text">入驻即可领取您的专属会员权益<br />免费享受职位发布权益(60天*3个)</p>
      <div class="footerBtn" @click="toJump">会员入驻</div>
    </div>
    <script>
      var vm = new Vue({
            el: "#app", //挂载点
            data: {
              // config:"http://job-dev.gogowork.cn:4080/gogojob-ucenter",
              config:"/gogojob-ucenter",
              startUrl:"https://job-img.gogowork.cn/static",
              
            },
            methods: {
              // 会员入驻
              toJump(){
                var groupId = this.getParameterByName("groupId")||"";
                var regFrom = this.getParameterByName("regFrom")||"";
                var companyAuth = "";
                var token = this.getParameterByName("token") || "";
                var regInviteId = this.getParameterByName("regInviteId") || 0;
                 if(groupId&&groupId=='210'){
                   groupId = "5"
                 }
                 if(regFrom&&regFrom=='342'){
                   regFrom = "31"
                 }
                 if(this.getParameterByName("companyAuth")&&this.getParameterByName("companyAuth").indexOf("9")>-1) {
	                 	companyAuth = 9
	                }
                var isMiniProgram = window.navigator.userAgent.toLocaleLowerCase().indexOf('miniprogram') > -1;
                  if (isMiniProgram) {
                    if(!token){
                      wx.miniProgram.redirectTo({
                        url:"/pages/view/login/login?identity=2"+"&groupId="+groupId+"&regFrom="+regFrom+"&regInviteId="+regInviteId
                      })
                    }else if(companyAuth==9){
                      this.$message.error({
                       duration:5000,
                       message:"您当前已经是平台入驻企业，无需再次认证",
                     })
                    }else{
                      wx.miniProgram.redirectTo({
                        url:"/subPagesC/companyCertification/companyCertification"+"?token="+token
                      })
                    }
                  } else {
                    if(!token){
                       window.location.href = 'https://www.gogowork.cn/h5/index.html?regInviteId=' +regInviteId+
                      "&path=pages/view/login/login"+'&identity=2'+"&groupId="+groupId+"&regFrom="+regFrom+"&regInviteId="+regInviteId
                    }else if(companyAuth==9){
                      this.$message.error({
                       duration:5000,
                       message:"您当前已经是平台入驻企业，无需再次认证",
                     })
                    }else{
                       window.location.href = 'https://www.gogowork.cn/h5/index.html?regInviteId=' +regInviteId+
                      "&path=/subPagesC/companyCertification/companyCertification"+"&token="+token
                    }
                  }
              },
              // 获取参数
              getParameterByName(name, url) {
                if (!url) url = window.location.href;
                name = name.replace(/[\[\]]/g, "\\$&");
                var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
                results = regex.exec(url);
                if (!results) return null;
                if (!results[2]) return "";
                return decodeURIComponent(results[2].replace(/\+/g, " "));
              },
            },
            watch: { //监听
            
            },
            computed: { //计算属性
              
            },
            filters: { 

            },
            created(){
          
            },
            mounted() {
             
           }
        })
    </script>
</body>
</html>